#pragma once
#include "td_map.h"
#include "td_enemy.h"
#include "td_resource.h"
#include "td_tower.h"
using namespace std;
class td_manage
{
public:
	td_manage();
	~td_manage();
	void game_manage();
	void move(int i);
	void create_enemyvec();
	void ready();
	void create_towervec(int x, int y);
	void welcome();
	static void on_mouse(int event, int x, int y, int flags, void* param);
	static void on_mouse1(int event, int x, int y, int flags, void* param);
	void create_towervec1(int x, int y);
	void release_game();
	td_bomb *bomb = new td_bomb;
	td_map *map=new td_map;
	//td_enemy *enemy=new td_enemy;
	td_resource *resource=new td_resource;
	//td_tower *tower=new td_tower;
	vector <td_enemy *> vec_enemy;
	vector <td_tower *>vec_tower;
	int judge_welcome=0;
	IplImage *copy;
private:
};

